package fr.insa.main;


import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JPanel;

import fr.insa.bouton.BoutonEfface;
import fr.insa.bouton.BoutonTrace;

	
public	class Main extends JPanel
	{  
	  JPanel ardoise = new JPanel();
	  JPanel lesBoutons = new JPanel();
	  BoutonTrace trace = new BoutonTrace("trace", ardoise);
	  BoutonEfface efface = new BoutonEfface("efface", ardoise);

	  public Main()
	  {
	    setLayout(new BorderLayout(5, 5));
	    ardoise.setPreferredSize(new Dimension(200, 150));
	    lesBoutons.add(trace);
	    lesBoutons.add(efface);
	    add("North",lesBoutons);
	    add("Center", ardoise);
	  }

	  public static void main(String[] argv)
	  {
	    JFrame monCadre = new JFrame();
	    monCadre.setContentPane(new Main());
	    monCadre.pack();
	    monCadre.setVisible(true);
	  }
	}

